import type { App } from "vue"
import { createPinia } from "pinia"
import { useAppStore } from "./modules/app"
import { useThemeStore } from "./modules/theme"
import { useAuthStore } from "./modules/auth"
import { useTabViewStore } from "./modules/tabView"

const store = createPinia()

export function setupStore(app: App<Element>) {
    app.use(store)
}

export { useAppStore, useThemeStore, useAuthStore, useTabViewStore }
